/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module Settle.c - Header file for the Settlement functionality |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/settle.h $ 
 * 
 * 8     3/19/00 6:04p Jim_b4
 * Code Security functionality added
 * 
 * 7     3/02/00 4:21p Kevin_v1
 * Bug fix # Joy_A 13 "Settlement Report - Failed - column mode=0, 1"
 * 
 * 6     2/21/00 3:00p Jim_b4
 * Include file restructuring
 * 
 * 5     1/14/00 5:24p Monique_b1
 * Removed autosettlement functions
 * 
 * 4     1/07/00 12:41p Monique_b1
 * Modified parameters on settlement functions
 * 
 * 3     11/18/99 3:46p Kevin_v1
 * Complete BATCH Module
 * 
 * 2     10/20/99 10:39a Kevin_v1
 * Implemented IDLE_LOOP_OPERATION
 * 
 * 1     7/19/99 5:44p Jim_b4
 * 
 * 1     7/19/99 4:30p Jim_b4
 * 
 * 2     6/09/99 11:21a Monique_b1
 * Change headers and file names for SP 2000
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef VSSETL_H
#define VSSETL_H

#include <transact.h>
#include <print.h>

int inConfirmSettle (TRANSACTION_OBJECT *pobTran);
int inCloseBatchOper (TRANSACTION_OBJECT *pobTran);
long lnProceedWithSettlement (TRANSACTION_OBJECT *pobTran);
void vdMustSettleHostFlags(VS_BOOL fSettleFlag);
int inReprintSettlementReportOperation (TRANSACTION_OBJECT *pobTran);
int inRePrintSettlementReport (TRANSACTION_OBJECT *pobTran);
int inPrintSettlementReport (TRANSACTION_OBJECT *pobTran, VS_BOOL fBatchReport, VS_BOOL fSettleSucceeded, VS_BOOL fCommErr);
int inPrintSettleReport (TRANSACTION_OBJECT *pobTran);

int inResetBatch (TRANSACTION_OBJECT *pobTran);
int inMakeSettleMessage(long lnMsgIndx, char *pchMessage, int inMsgSize);
int inReprintSettlRep (TRANSACTION_OBJECT *pobTran);
int inFakeSettle (TRANSACTION_OBJECT *pobTran);
int inSettleAHost (TRANSACTION_OBJECT *pobTran);
int pSettleAllHosts (TRANSACTION_OBJECT *pobTran);
void vdFormatSettleStatusMsg (char * szStatusMessage);
int SETTLE_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);
int SETTLE2_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);
void vdDisplayNoDataMsg(void);

#endif
